//_bet.Cookies=new Object();
//_bet.Cookies.dateOfExpires=7;
//_bet.Cookies.prefixed='manu';
//
//_bet.Cookies.set=function( name, value, expires){
//    if(name){
//        if(!expires)
//            expires=Ext.Date.add(new Date(), Ext.Date.DAY, _bet.Cookies.dateOfExpires);
//        Ext.util.Cookies.set( _bet.Cookies.prefixed+name, value, expires);
//    }
//};
//
//_bet.Cookies.get=function(name){
//    return Ext.util.Cookies.get(_bet.Cookies.prefixed+name);
//};
//
//_bet.Cookies.clear=function(name){
//    return Ext.util.Cookies.clear(_bet.Cookies.prefixed+name);
//};

App.Cookies = new Object();
App.Cookies.dateOfExpires = 1;
App.Cookies.prefixed = 'utms';

App.Cookies.set = function(name, value, expires) {
	var expiress = null;
	if (name) {
		if (!expires) {
			expiress = new Date((new Date()).getTime() + 3 * 60 * 60 * 1000);
		}
		console.log(expiress);
		Ext.util.Cookies.set(name, value, expiress);
	}
};

App.Cookies.get = function(name) {
	return Ext.util.Cookies.get(name);
};

App.Cookies.clear = function(name) {
	return Ext.util.Cookies.clear(name);
};
